package com.gubei.subject.application.convert;

import com.gubei.subject.application.dto.SubjectInfoDTO;
import com.gubei.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoDTOConverter {
    SubjectInfoDTOConverter INSTANCE = Mappers.getMapper(SubjectInfoDTOConverter.class);

    SubjectInfoDTO convertInfoBoToInfoDto(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO convertInfoDtoToInfoBo(SubjectInfoDTO subjectInfoDTO);

    List<SubjectInfoDTO> convertInfoBoListToInfoDtoList(List<SubjectInfoBO> subjectInfoBOList);

    List<SubjectInfoBO> convertInfoDtoListToInfoBoList(List<SubjectInfoDTO> subjectInfoDTOList);
}
